package inits

import (
	"fmt"
	"strconv"
	"time"
	"unlimited-comments/pkg"
)

func SimlpePublish() {
	rabbitmq := pkg.NewRabbitMQSimple("" +
		"kuteng")

	for i := 0; i <= 100; i++ {
		rabbitmq.PublishSimple("Hello kuteng!" + strconv.Itoa(i))
		time.Sleep(1 * time.Second)
		fmt.Println(i)
	}
}
